package com.by.zhdoctor.algorithmsUtil;

import java.util.List;

/**
 * Created by 123 on 2017/4/7.
 */
public class StrategyContext {


    private AbstractStrategy strategy;
    /**
     * 构造函数，
     * @param strategy
     */
    public StrategyContext(AbstractStrategy strategy){
        this.strategy = strategy;
    }
    /**
     * 策略方法
     */
    public List<?> contextStrategy(String doctorName,String bmName,List<String> list){

      return  strategy.strategy(doctorName,bmName,list);

    }

}
